﻿using ImageManager.MyType;
using System;
using ImageManager.MyType.FieldType;

namespace ImageManager.Model
{
    [Serializable]
    public class BaseModel
    {
        public BaseModel()
        {
            Del = false;
        }
        [MyIgnoreCompareColumn]
        public string Pk { get; set; }
        [MyIgnoreCompareColumn]
        public MyDateTime CreateDate { get; set; }
        [MyIgnoreCompareColumn,
         MyForeign(typeof(UserModel),nameof(UserModel.UserCode), nameof(UserModel.UserName))
        ]
        public string Creator { get; set; }
        [MyIgnoreCompareColumn]
        public MyDateTime ModifyDate { get; set; }
        [MyIgnoreCompareColumn,
         MyForeign(typeof(UserModel), nameof(UserModel.UserCode), nameof(UserModel.UserName))
        ]
        public string Modifier { get; set; }
        [MyIgnoreCompareColumn]
        public string DeleteUser { get; set; }
        [MyIgnoreCompareColumn]
        public MyDateTime DeleteDate { get; set; }
        [MyIgnoreCompareColumn]
        public MyBoolean Del { get; set; }
        [MyIgnoreCompareColumn]
        public int Flag { get; set; }
    }
}
